package cn.virens.web.components.open.wxmp.router.impl;

import org.springframework.stereotype.Component;

import cn.virens.web.components.open.session.WxSessionManager;
import cn.virens.web.components.open.wxmp.annotations.WxMpRouterRule;
import cn.virens.web.components.open.wxmp.session.WxMpSessionMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;

@Component
@WxMpRouterRule(async = false, event = "subscribe", reEnter = true)
public class WxMpMessageSubscribeHandler extends AbstractMessageHandler {

	@Override
	protected WxMpXmlOutMessage handle0(WxMpSessionMessage message, WxSessionManager manager) throws Exception {
		return text(message, "欢迎关注，请输入 \"绑定:\" + 账号 进行用户绑定");
	}

}
